package com.limetalks.servlet;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import com.limetalks.util.SessionTracker;

public class SessionListener implements HttpSessionListener, java.io.Serializable{
	
	private static final long serialVersionUID = 1L;

	public void sessionCreated(HttpSessionEvent event) {
		SessionTracker.instance().add(event.getSession());
	}

	public void sessionDestroyed(HttpSessionEvent event) {
		SessionTracker.instance().remove(event.getSession());
	}
}